//
//  MGDatePickView.h
//  MGPublic
//
//  Created by lhongl on 2025/10/24.
//

#import "MGAlertBottomViewController.h"
@class MGDatePickView;
NS_ASSUME_NONNULL_BEGIN
@protocol MGDatePickViewProtocol <NSObject>

@optional
/// pickView
/// - Parameters:
///   - pickView: 对象
///   - result: 结果
- (void)pickView:(MGDatePickView *)pickView result:(NSString *)result;

@end

@interface MGDatePickView : MGAlertBottomViewController

/// 代理
@property (nonatomic, weak) id <MGDatePickViewProtocol> delegate;

/// 类型
@property (nonatomic) UIDatePickerMode datePickerMode;

/// 设置最小时间
@property (nonatomic, strong)  NSDate  *minDate;
@property (nonatomic, copy)  NSString  *miniDateStr;

/// 设置最大时间
@property (nonatomic, strong)  NSDate  *maxDate;
@property (nonatomic, copy)  NSString  *maxDateStr;

/// 设置选中时间
@property (nonatomic, strong)  NSDate  *selectDate;
@property (nonatomic, copy)  NSString  *selectDateStr;

/// 【默认yyyy-MM-dd】
@property (nonatomic, copy)  NSString  *dateFromatter;

#pragma mark 扩展类型
@property (nonatomic) id extend;

@end

NS_ASSUME_NONNULL_END
